package net.ixion.portal.module;

import net.ixion.portal.module.base.BaseModule;
import net.ixion.portal.utils.result.Result;

import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.IocBy;
import org.nutz.mvc.annotation.Modules;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.ioc.provider.ComboIocProvider;

@Modules(scanPackage = true)
@IocBy(type = ComboIocProvider.class, args = {
		"*org.nutz.ioc.loader.json.JsonLoader",
		"net/ixion/portal/config/portal.json",
		"*org.nutz.ioc.loader.annotation.AnnotationIocLoader",
		"net.ixion.portal" })
@At("/")
@Fail("jsp:jsp.exception.exception")
public class MainModule extends BaseModule {

	@At("index")
	@Ok("jsp:..index")
	public Result index() {
		clear();
		data.put("info", "info");
		fillResult();
		return result;
	}

}
